package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for joinAccountGroupRequest resource.
func SetJoinAccountGroupRequestRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewJoinAccountGroupRequestHandler(db)

	routerGroup.GET("/count-received", h.CountReceived)
	routerGroup.GET("/query-receiving", h.QueryReceiving)
	routerGroup.POST("/send", h.Send)
	routerGroup.POST("/accept", h.Accept)
	routerGroup.POST("/reject", h.Reject)
	routerGroup.POST("/delete", h.Delete)
}
